//
//  DHDetailsVC.m
//  NavigationDemo
//
//  Created by 商广硕 on 2022/7/9.
//

#import "DHDetailsVC.h"

@interface DHDetailsVC ()

@end

@implementation DHDetailsVC


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    NSString *res = self.listText;
    NSLog(@"-接收内容--%@",res);
    
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    // 在页面跳转前将参数传出去
     if ([self.delegate respondsToSelector:@selector(showViewGiveValue:)]) {
         [self.delegate showViewGiveValue:@"反向传值"];
     }
     [self.navigationController popViewControllerAnimated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
